stylecontext: Remove leftover debugging
authorBenjamin Otte <otte@redhat.com>
Mon, 17 Sep 2012 08:48:38 +0000 (10:48 +0200)
committerBenjamin Otte <otte@redhat.com>
Mon, 17 Sep 2012 18:39:14 +0000 (20:39 +0200)
... that actually was both wrong, a performance failure and has been
there since the original checkin.

Updating the cached style data absolutely does not mean clearing all
cached style data first. There's nothing to update then.

gtk/gtkstylecontext.c

index 239dd55bb3b1e09bb4aba26ebf3f1d6b173ec82d..538897af2eb25a8ddf8af7309e922e60b7071e81 100644 (file)
@@ -2948,8 +2948,6 @@ gtk_style_context_update_cache (GtkStyleContext  *context,
 
   priv = context->priv;
 
-  g_hash_table_remove_all (priv->style_data);
-
   g_hash_table_iter_init (&iter, priv->style_data);
   while (g_hash_table_iter_next (&iter, &key, &value))
     {